#include<iostream>
#include<unistd.h>
using namespace std;
int g_val = 100;

int main()
{
  pid_t id= fork();
  if(id== 0)
  {
    //child
    g_val = 1000;
    cout << "I am child : my g_val = " << g_val << " &g_val = " << &g_val << endl; 
  }
  else
  {
    cout << "I am father : my g_val = " << g_val << " &g_val = " << &g_val << endl; 
  }
  return 0;
  
}
